from django.db import models

# Create App models here.


# 用户
class UserModel(models.Model):

    name = models.CharField(max_length=32, unique=True)
    icon = models.CharField(max_length=256)


# 相册
class PhotoModel(models.Model):
    img = models.CharField(max_length=255)
    user = models.ForeignKey(UserModel, on_delete=models.PROTECT)

    